home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 48
/
Amiga Format CD48 (1999-12-13)(Future Publishing)(GB)(Track 1 of 2)[!][issue 2000-01].iso
/
-websites-
/
wirenet
/
files
/
thor25_arexx.lha
/
Edge
/
Cool.edge
< prev
next >
Wrap
Text File
|
1996-01-13
|
909b
|
46 lines
/* Coolify (using "TEXT COOLER v1.0 by
** DDT of the HALF-BRAINS TEAM")
** text block - by Troels Walsted Hansen
** added Edge support - Kirk A. Hans
** Function: for now, it takes the text from the current line position to the
** end of the file and makes it "cool". Will added block support in
** the next version */
options results
getenvvar _WE_CursorY
currline = result
getenvvar _WE_CursorX
currcolumn = result
getenvvar _FE_Lines
lastline = result
call open(tfh, "t:UncoolTempFile", W)
do i=currline to lastline
'Position' LINE i
getenvvar _WE_CLine RAW
lin = result
if(lin~= "") then do
delete LINE
i = i-1
end
else break
call writech(tfh,lin)
end
call close(tfh)
address command "Cool >nil: t:UncoolTempFile t:CoolTempFile"
call delete("t:UncoolTempFile")
Position currcolumn currline
INCLUDE "t:CoolTempFile"
call delete("t:CoolTempFile")
Position currcolumn currline